<template>
  <div>
    <el-dialog
      :title="$t('batch.timingConfig.form.editTiming')"
      :visible.sync="open"
      @close="close()"
      append-to-body
    >
      <div class="discountReceipt-pick-operate-box">
        <div class="operate-box-bottom">
          <div class="bottom-content">
            <kv-config ref="paramsTable" :paramType="3" paramKey="" />
          </div>
        </div>
      </div>
      <div slot="footer" class="dialog-footer">
        <el-button @click="close">{{ $t("common.close") }}</el-button>
      </div>
    </el-dialog>
  </div>
</template>

<script>
import { dialogMixin } from "@/libs/dialogMixin";
import KvConfig from "@/views/batch/components/kvConfig";
export default {
  name: "EditTimingParams",
  mixins: [dialogMixin],
  components: { KvConfig },
  data() {
    return {
      open: false,
      sysConfId: "",
    };
  },
  methods: {
    show(sysConfId) {
      this.sysConfId = sysConfId;
      if (sysConfId) {
        this.$nextTick(() => {
          this.$refs.paramsTable.loadData(this.sysConfId);
        });
      }
      this.open = true;
    },
  },
};
</script>

<style scoped>
</style>
